#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct Name Name;
struct Name {
  char firseName[50];
  char lastName[50];
};
typedef struct Student Student;
struct Student {
  int age;
  Name name;
  char gender;
};
int main(int argc, char *argv[]) {
  /* 结构体嵌套
   */
  Student stu;
  Name n = {.firseName = "hera", .lastName = "feng"};
  stu.name = n;
  stu.gender = 'M';
  stu.age = 18;
  printf("name = %s %s\ngender = %c\nage = %d\n", stu.name.firseName,
         stu.name.lastName, stu.gender, stu.age);
  return EXIT_SUCCESS;
}
